import 'package:flutter/material.dart';
import './bloC_child_demo.dart';

class BloCDemo extends StatelessWidget {
  const BloCDemo({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return CounterProvider(
      bloC: CounterBloC(),
      child:Scaffold(
        appBar: AppBar(
          title: Text('BloCDemo'),
          elevation: 0.0,
        ),
        body: Container(
          padding: EdgeInsets.all(16.0),
          child: CounterHome(),
        ),
        floatingActionButton: CounterAcitonButton(),
      )
    );
  }
}
